import request from '@/utils/request'

// 查询商业伙伴地址信息列表
export function listBpMasterAddress(query) {
  return request({
    url: '/lease/bpMasterAddress/list',
    method: 'get',
    params: query
  })
}

// 查询商业伙伴地址信息详细
export function getBpMasterAddress(addressId) {
  return request({
    url: '/lease/bpMasterAddress/' + addressId,
    method: 'get'
  })
}

// 新增商业伙伴地址信息
export function addBpMasterAddress(data) {
  return request({
    url: '/lease/bpMasterAddress',
    method: 'post',
    data: data
  })
}

// 修改商业伙伴地址信息
export function updateBpMasterAddress(data) {
  return request({
    url: '/lease/bpMasterAddress',
    method: 'put',
    data: data
  })
}

// 删除商业伙伴地址信息
export function delBpMasterAddress(addressId) {
  return request({
    url: '/lease/bpMasterAddress/' + addressId,
    method: 'delete'
  })
}
